from django.urls import path

from . import views

urlpatterns = [
    # 获取所有数据或保存新数据
    path('lybs/', views.LybsView.as_view({'get': 'list', 'post': 'create'})),
    # 获取单一数据、更新和删除数据
    path(r'lybs/<int:pk>', views.LybsView.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'}))
]
